// 获取应用实例
Component({
  data: {
    navHeight: 0
  },
  ready() {
    const MenuButtonBoundingClientRect = getApp<IAppOption>().globalData.MenuButtonBoundingClientRect
    const statusHeight = getApp<IAppOption>().globalData.statusHeight
    const navHeight =  MenuButtonBoundingClientRect.height + (MenuButtonBoundingClientRect.top - statusHeight) * 2
    this.setData({navHeight})
 
    
  },
  methods: {
    menuClick() {
      var myEventDetail = {} // detail对象，提供给事件监听函数
      var myEventOption = {} // 触发事件的选项
			this.triggerEvent('menuClick', myEventDetail, myEventOption)
    }
  }
})